<div class="frame">
    <div class="frame-border-top"></div>
    <div class="frame-border-middle">
      <h1 class="header">Dashboard</h1>

      <ul class="keyboard">
        <li> <a class="link-button" href="<?=site_url('customer');?>"> <img src="<?=site_url();?>application/views/images/icon_user.png" alt="user" width="39" height="38"/> </a>
          <label>My Customer</label>
        </li>
		
        <li> <a class="link-button" href="<?=site_url('activity');?>"> <img src="<?=site_url();?>application/views/images/icon_write.png" alt="write" width="39" height="38"/> </a>
          <label>Activity</label>
        </li>
		
		<li> <a class="link-button" href="<?=site_url('user/myprofile');?>"> <img src="<?=site_url();?>application/views/images/icon_security.png" alt="security" width="39" height="38"/> </a>
          <label>My Profile</label>
        </li>
		
		<?php if( ($this->session->userdata('user_pos')==$this->config->item('se')) || ($this->session->userdata('user_pos')==$this->config->item('spv'))):?>
        <li> <a class="link-button" href="<?=site_url('customer/approval/');?>"> <img src="<?=site_url();?>application/views/images/icon_message.png" alt="message" width="39" height="38"/> </a>
          <label>Approval</label>
        </li>
		<?php endif;?>
        
        <li> <a class="link-button" href="<?=site_url('user/password');?>"> <img src="<?=site_url();?>application/views/images/icon_event.png" alt="event" width="39" height="38"/> </a>
          <label>Password</label>
        </li>
        <!--<li> <a class="link-button" href="<?=site_url('info');?>"> <img src="<?=site_url();?>application/views/images/icon_info.png" alt="info" width="39" height="38"/> </a>

          <label>info</label>
        </li>-->
      </ul>
      <div class="accordion">
        
        
        <!--<div class="accordion-tab">

          <h1>Activity Summary</h1>
          <div class="accordion-tab-open-close"></div>
          <div class="clear"></div>
        </div>
        <div class="accordion-panel">
          <div class="accordion-panel-border-top">
            <div class="accordion-panel-border-bottom">
              <label>Visits</label>

              <div id="visits" class="graphs"></div>
            </div>
          </div>
        </div>-->
		
		
        <div class="accordion-tab">
          <h1>Latest Activity</h1>
          <div class="accordion-tab-open-close"></div>
          <div class="clear"></div>

        </div>
        <div class="accordion-panel">
          <div class="accordion-panel-border-top">
            <div class="accordion-panel-border-bottom">
              <form method="post" action="index.html" class="skinnable">
                <table border="0" cellpadding="0" cellspacing="0" class="grid">
                  <thead>
                    <tr class = "first" >
                      <td style="padding:10px"><?='Date'?></td>		
					  <td style="padding:10px"><?='Time'?></td>	
                      <td style="padding:10px"><?='Cust Name'?></td>
					 
                    </tr>
                  </thead>
                  <tbody>
				  <?php 
					$i=1;
					foreach($activity as $value):?>
                    <tr class="<?php if($i % 2==0) { ?>par<?php } else { ?>odd<?php } ?>">
					<td style="padding:10px"><?=$value['activity_date']?></td>		
					<td style="padding:10px"><?=$value['activity_time']?></td>	
                    <td style="padding:10px"><?=$value['customer_name']?></td>
                      
                    </tr>
				<?php 
					$i++;
					endforeach;?>
                  </tbody>
                </table>
                
              </form>
            </div>
          </div>
        </div>
      </div>
      
	  
     
    </div>
    <div class="frame-border-bottom-lined"></div>
  </div>